package cn.hss.object.inter;

/**
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 19:54
 * @Package 包名：cn.hss.object.inter
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class InterfaceTest {
	public static void main(String[] args) {
		ComparableCircle cc1 = new ComparableCircle(2.0);
		ComparableCircle cc2 = new ComparableCircle(3.0);
		int i = cc1.compareTo(cc2);
		if(i>0){
			System.out.println("cc1对象大");
		}else if(i<0){
			System.out.println("cc1对象小");
		}else{
			System.out.println("cc1和cc2一样大");
		}
	}
}
